﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ModuleTypeAction.ascx.cs"
    Inherits="controls_admin_ModuleTypeAction" %>
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 id="title" runat="server">
            Cập nhật loại Modules
        </h5>
        <div class="search">
            <div class="input">
            </div>
            <div class="button">
            </div>
        </div>
    </div>
    <!-- end box / title -->
    <div id="divMessage" runat="server" />
    <div class="first-action">
        <asp:DropDownList ID="ddlModuleType" AppendDataBoundItems="true" runat="server" AutoPostBack="true"
            OnSelectedIndexChanged="ddlModuleType_SelectedIndexChanged" CssClass="select" />
    </div>
    <div class="form" style="height: auto; padding-bottom: 40px;">
        <div class="fields" style="left: 230px; margin: 0; padding: 0 0 8px 0; width: auto;
            position: relative; width: 60%">
            <div class="field">
                <div class="label" style="left: 20px;">
                    <label for="input-small">
                        Loại Module:</label>
                </div>
                <div class="input" style="margin-left: 170px">
                    <asp:TextBox ID="txtType" runat="server" Width="180px" CssClass="required" />
                </div>
                <div style="float: left;">
                    <asp:Button runat="server" ID="btnDel" CssClass="icon-32-delete" BorderStyle="None"
                        BackColor="Transparent" OnClick="btnDel_Click" />
                </div>
            </div>
            <div class="field">
                <div class="label" style="left: 20px;">
                    <label for="textarea">
                        Mô Tả:</label>
                </div>
                <div class="input" style="margin-left: 170px">
                    <div style="width: 50%; float: left">
                        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Columns="50"
                            Rows="12" CssClass="required" MaxLength="200" BorderWidth="1" Width="400"></asp:TextBox>
                    </div>
                </div>
            </div>
            <div class="buttons">
                <input type="reset" value="Làm lại" name="reset" />
                <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" Width="100px" OnClick="btnUpdate_Click" />
            </div>
        </div>
    </div>
    <div style="text-align: center; margin: 10px">
        <%if (Session["url"] != null)
          {
              if (Request.UrlReferrer != null)
              {
                  if (!Request.UrlReferrer.ToString().Equals(Request.Url.ToString()))
                  {
                      Session["url"] = Request.UrlReferrer.ToString();                      
                  
        %>
        <a onclick="history.go(-1);" title="Trang trước">
            <%
}
                  else
                  {
            %>
            <a href='<%=Session["url"].ToString() %>' title="Trang trước">
                <%   
}
              }
              else
              {                      
                %>
                <a onclick="history.go(-1);" title="Trang trước">
                    <%}
          }
          else
          {
              if (Request.UrlReferrer != null)
                  Session.Add("url", Request.UrlReferrer.ToString());
              else
                  Session.Add("url", Request.Url.ToString());
                    %>
                    <a href="default.aspx" title="Trang trước">
                        <%} %>
                        <img src="../resources/images/icons/16x16/arrow-return.png" alt="Trang trước" /></a>
                    &nbsp;&nbsp; <a href="default.aspx" title="Trang chủ">
                        <img src="../resources/images/icons/16x16/home.png" alt="Trang chủ" /></a>
    </div>
</div>
